//package com.xiu.travel.config;
//
//import com.xiu.travel.portal.OpenFeignConfig;
//import lombok.AllArgsConstructor;
//import lombok.Builder;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.reactive.function.client.WebClient;
//import org.springframework.web.reactive.function.client.support.WebClientAdapter;
//import org.springframework.web.service.invoker.HttpServiceProxyFactory;
//
///**
// * @author lijie
// * @date 2023/7/4 17:00
// * @description SFConfig
// */
//@Configuration
//@Data
//@Builder
//@NoArgsConstructor
//@AllArgsConstructor
//public class SFConfig
//{
//    @Bean
//    public SFApiClient sfApiClient() {
//        WebClient client = WebClient.builder().baseUrl(OpenFeignConfig.TEST_API_URL).build();
//        HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
//        return factory.createClient(SFApiClient.class);
//    }
//    /**
//     * 开发者id
//     */
//    private Integer devId;
//    /**
//     * 开发者登录后，在管理中心-开发助手-应用信息页面可以看到
//     */
//    private String appSecret;
//    private static SFConfig INSTANCE = SFConfig.builder()
//            .devId(1668283371)
//            .appSecret("100b93d6588b4852cb7522cdd6d45bc7")
//            .build();
//
//    public static SFConfig getInstance() {
//        return INSTANCE;
//    }
//}
